#include "socket/socket.h"

#ifndef _USER_H_
#define _USER_H_
typedef enum _user_state
{
    ONLINE,
    INVINSIBLE,
    OFFLINE,
}user_state;

class User
{
    private:
        int ID;
        string name;
        user_state state;
        bool is_connected;
        int sock_num;
        struct sockaddr_in saddr;
    public:
        User();
        void set_state(user_state);
        user_state get_state();
        bool connect_to_server(struct sockaddr_in);
        void disconnect();
        int send_msg(string);
        string get_reply();
}

#endif
